package web.blogsphere.model;

import lombok.Data;

import java.time.LocalDateTime;
import web.blogsphere.utils.DateUtils;
import java.util.Date;

/**
 * @ClassName BlogInfo
 * @Description 博客表的实体类
 * @Author ZJX
 * @Date 2024/9/3 13:05
 * @Version 1.0
 */

@Data
public class BlogInfo {
    private Integer id;
    private String title;
    private String content;
    private Integer userId;
    private boolean isLoginUser;
    private Integer deleteFlag;
    private Date createTime;
    private LocalDateTime updateTime;

    public String getCreateTime() {
        return DateUtils.dateFormat(createTime);
    }

}
